
// Client.h : main header file for the PROJECT_NAME application
//

#pragma once

#ifndef __AFXWIN_H__
	#error "include 'stdafx.h' before including this file for PCH"
#endif

#include "resource.h"		// main symbols
#include "User.h"

// CClientApp:
// See Client.cpp for the implementation of this class
//

class CClientApp : public CWinAppEx
{
private:
	static CUser* user;
	static CUser* rival_user;
	
public:
	CClientApp();
	static CUser* getUser() { 
		if (NULL==user)
		{
			user=new CUser;
		}
		return user; 
	}
	static CUser* getRivalUser() { 
		if (NULL==rival_user)
		{
			rival_user=new CUser;
		}
		return rival_user; 
	}

// Overrides
	public:
	virtual BOOL InitInstance();
	
// Implementation

	DECLARE_MESSAGE_MAP()
};

extern CClientApp theApp;